<?php
header('content-type:text/html;charset=utf-8');
$id = $_GET['id'];
$link = mysqli_connect('localhost','root','','a');
mysqli_set_charset($link,'utf8');
$sql = "select * from goods where goods_id=$id";
$result = mysqli_query($link,$sql);
$row = mysqli_fetch_assoc($result);
echo json_encode($row);
mysqli_close($link);

?>